package com.qbw.core.base;

import androidx.databinding.ViewDataBinding;
import android.view.Gravity;
import android.view.Window;

import com.qbw.app.R;


/**
 * created by qinbaowei on 2019/4/22 11:04 AM
 */
public abstract class BaseBottomDialogFragment<B extends ViewDataBinding> extends BaseDialogFragment<B> {

    @Override
    protected void onSetWindowFlag() {
        super.onSetWindowFlag();
        Window window = getDialog().getWindow();
        window.setGravity(Gravity.BOTTOM);
    }

    @Override
    protected int getWindowAnimations() {
        return R.style.DialogAnimationBottom;
    }
}
